]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Only try to focus the summary when summoning the tray by <Super>M
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 17 Oct 2013 01:36:09 +0000 (21:36 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 17 Oct 2013 17:07:42 +0000 (13:07 -0400)
Otherwise, when closing the tray, we'll try to focus an actor, which will
focus the stage window, which will drop the focus from whatever window we
already had focused.

https://bugzilla.gnome.org/show_bug.cgi?id=710347

js/ui/messageTray.js

index c66c9f6fa23a38d345f400c8f983b9c59b6755b5..f8e029ca30aa479e9fa09c0f5e5494dde8cff9e8 100644 (file)
@@ -2212,7 +2212,10 @@ const MessageTray = new Lang.Class({
     },
 
     toggleAndNavigate: function() {
-        if (this.toggle())
+        if (!this.toggle())
+            return;
+
+        if (this._traySummoned)
             this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
     },